Inherits from
RegularRegularExpressionValidator to provide a validator control for email
validation. The
Background
It's common to provide textboxes where the user supplies an email address, and to
validate that the input is correct. The first step in the validation process is to
verify that the provided address looks real. The
Note that an empty value is not accepted, this is a different behavior compared to most validation controls.
Examples
The following code will validate that the input in a textbox as an email.
HTML<asp:TextBox RunAt="Server" id="tbEmail" />
<csx:EmailValidator RunAt="Server" ControlToValidate="tbEmail" ErrorMessage="You must enter an email address." />